import 'package:flutter/material.dart';

class image_detail_page extends StatelessWidget {
  final String image_url;

  image_detail_page(this.image_url);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: (){
        Navigator.of(context).pop();
      },
      child: Scaffold(
        backgroundColor: Colors.black,
        body: Center(
          child: GestureDetector(
            child: Hero(
              tag: image_url,
                child: Image.network(image_url)),
          ),
        ),
      ),
    );
  }
}
